package com.pulse.base.service;

import com.pulse.base.domain.CircuitThreshold;

/**
 * @ClassName ICircuitThresholdService
 * @Description
 * @Author 陆帅
 * @Date 2024/9/25 15:24
 */
public interface ICircuitThresholdService {
    /**
     * 根据设备编号和通道号查询阈值信息
     * @param deviceNo
     * @param channel
     * @return
     */
    CircuitThreshold selectThresholdByDeviceNoAndChannel(String deviceNo, Integer channel);

    /**
     * 修改阈值
     * @param circuitThreshold
     * @return
     */
    int updateThreshold(CircuitThreshold circuitThreshold);

    /**
     * 插入
     * @param circuitThreshold
     * @return
     */
    int insertThreshold(CircuitThreshold circuitThreshold);

    /**
     * 根据设备编号删除
     * @param deviceNo
     * @return
     */
    int deleteByDeviceNo(String deviceNo);
}
